﻿<UserControl x:Class="HeaderContent.HeaderView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" >
   
    <Border x:Name="LayoutRoot" CornerRadius="5" BorderBrush="Black" BorderThickness="5" >
    	   	
    	<Grid Background="RosyBrown">
            
    		<Grid.OpacityMask>
    			<RadialGradientBrush>
    				<GradientStop Color="#FFCAABAB" Offset="0.241"/>
    				<GradientStop Color="#FFAF8E8E" Offset="1"/>
    			</RadialGradientBrush>
    		</Grid.OpacityMask>
            
    		<Grid.ColumnDefinitions>
    			<ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
                
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            
    		<TextBlock Text="Am in the header region of the shell"
                       VerticalAlignment="Top"
                       Grid.ColumnSpan="3" 
                       Grid.Row="0"/>
            <StackPanel Grid.Column="3"
                        HorizontalAlignment="Right"
                        Orientation="Horizontal">
                
            <Button  Content="Login"  Command="{Binding LoginCommand}"
                     IsEnabled="{Binding LoginButtonVisible,Mode=TwoWay}"/>
                     
                      
            
            <Button  Content="Logout" Command="{Binding LogoutCommand}"
                     IsEnabled="{Binding LoggedOutButtonVisible,Mode=TwoWay}" />                     
                    
            </StackPanel>
        </Grid>
    </Border>
</UserControl>
